package org.example.repository;

import java.util.HashMap;

@Deprecated
class IgnoreCaseHashMap<V> extends HashMap<String, V> {

    @Override
    public V put(String key, V value) {
        String l_key = key.toLowerCase();
        return super.put(l_key, value);
    }

    @Override
    public V get(Object key) {
        String l_key = ((String) key).toLowerCase();
        return super.get(l_key);
    }

    @Override
    public boolean containsKey(Object key) {
        String l_key = ((String) key).toLowerCase();
        return super.containsKey(l_key);
    }
}
